package org.feng.entity.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.feng.pojo.BaseEntity;

import java.io.Serializable;

/**
 * @author feng
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("sys_datasource")
@ApiModel("数据源")
public class Datasource extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "数据源名称")
    @TableField("name")
    private String name;
    @ApiModelProperty(value = "链接")
    @TableField("url")
    private String url;
    @ApiModelProperty(value = "驱动")
    @TableField("driver_class")
    private String driverClass;
    @ApiModelProperty(value = "用户名")
    @TableField("username")
    private String username;
    @ApiModelProperty(value = "密码")
    @TableField("password")
    private String password;
    @ApiModelProperty(value = "备注")
    @TableField("remark")
    private String remark;
}
